local _M = {}

function _M.new(key, server_list, balancer_type)

    local balancer_type = (balancer_type or "roundrobin")

    if balancer_type == "roundrobin" then
        local rr = require("roundrobin").new(key, server_list)
        _M[key] = rr
    end

    return _M

end

function _M.renew(key, server_list)
    _M[key].new(key, server_list)
    return _M
end

function _M.find(self, key)
    return _M[key].find(key)
end

return _M